package kadledav.hook;

import java.util.ResourceBundle;

import javax.annotation.PostConstruct;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

@Component
public class HookResourceHolder {

	private static final Logger logger = Logger.getLogger(HookResourceHolder.class);

	public static ResourceBundle resource;

	@PostConstruct
	public void loadResource() {
		ResourceBundle bundle = ResourceBundle.getBundle("hook_messages");
		logger.debug("hook resource bundle loaded");
		resource = bundle;
	}

}
